"""
@Project:p7_2109
@File:user.py
@Author:马可
@Date:上午 09:17
"""
from flask_restful import fields

user_fields = {
    'uid': fields.Integer,
    'account': fields.String,
    'uname': fields.String,
    'profile_photo':fields.String,
    'gender': fields.Integer,
    'created_time': fields.DateTime
}

channel_fields = {
    'cid': fields.Integer,
    'cname':fields.String,
    'sequence': fields.Integer,
    'ctime': fields.DateTime
}

news_fields = {
    'nid':fields.Integer,
    'title':fields.String,
    'cover':fields.String,
    'content':fields.String,
    'comment_count':fields.Integer,
    'good_count':fields.Integer
}